<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Clean Blog - Start Bootstrap Theme</title>

    <!-- Bootstrap Core CSS -->
    <link href="{{asset('lib/bootstrap/css/bootstrap.min.css')}}" rel="stylesheet">
    <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous"> -->

    <!-- Additional fonts for this theme -->
    <link href="{{asset('css/font-awesome.min.css')}}" rel="stylesheet" type="text/css">
    <link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>

    <!-- Custom styles for this theme -->
    <link href="{{asset('/css/clean-blog.min.css')}}" rel="stylesheet">

    <!-- Temporary navbar container fix until Bootstrap 4 is patched -->
    <style>
        .navbar-toggler {
            z-index: 1;
        }
        
        @media (max-width: 576px) {
            nav>.container {
                width: 100%;
            }
        }
    </style>

</head>

<body>

    <!-- Navigation -->
    <nav class="navbar fixed-top navbar-toggleable-md navbar-light" id="mainNav">
        <div class="container">
            <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
                Menu <i class="fa fa-bars"></i>
            </button>
            <a class="navbar-brand page-scroll" href="index.html">From bootstrap</a>
            <div class="collapse navbar-collapse" id="navbarResponsive">
                <ul class="navbar-nav ml-auto">
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('create/shouye1')}}">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('update')}}">修改</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('add')}}">添加</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('select')}}">查找</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link page-scroll" href="{{asset('delete')}}">删除</a>
                    </li>
                    <li class="nav-item dropdown">
                       	
                       

                        
                       
                            @if(Session::get('name'))
                            <a class="nav-link page-scroll dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"" href="#">
                            欢迎{{ Session::get('name') }}
                            </a>
                            @else
                            <a class="nav-link page-scroll" href="{{asset('create/login')}}">
                            登录
                            </a>
                            @endif
                  
                        <div class="dropdown-menu" aria-labelledby="dropdownMenuButton" style="margin-top: -10px;">
                            <form action="{{asset('create/exit')}}">
                            <input type="submit" class="dropdown-item " value="退出登录"></input>
                            </form>
                        </div>
                       


                       
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- Page Header -->
    <header class="intro-header" style="background-image: url('http://localhost:8080/laravel/a/public/img/home-bg.jpg')">
    <!-- <header class="intro-header" > -->
        <div class="container">
            <div class="row">
                <div class="col-lg-8 offset-lg-2 col-md-10 offset-md-1">
                    <div class="site-heading">
                        <h1>个人博客</h1>
                        <span class="subheading">Second</span>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <div class="container">
    @foreach($control as $val)
    <form action="{{url('delete')}}">
        <div class="row">
         
            <div class="col-lg-8 offset-lg-2 col-md-10 offset-md-1">
                <div class="post-preview">
                    <a href="#">
                        <h2 class="post-title">
                           {{$val->title}}
                        </h2>
                        <h3 class="post-subtitle">
                        {{$val->control}}
                        </h3>
                    </a>
                    <p class="post-meta">来自<a href="#">{{$val->author}}</a> 日期</p>
                 
                </div>
                <input type="text" class="sr-only" name="{{$val->id}}">
               
                <div class="form-group text-right">
                <input type="submit" name="delete" id="delete" value="删除" class="btn btn-outline-primary"> 
                </div>
                <hr >
           
            </div>
   
    </div>
    </form>
    @endforeach
    </div>

    <hr>

    <!-- Footer -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 offset-lg-2 col-md-10 offset-md-1">
                    <ul class="list-inline text-center">
                        <li class="list-inline-item">
                            <a href="#">
                                <span class="fa-stack fa-lg">
                                    <i class="fa fa-circle fa-stack-2x"></i>
                                    <i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
                                </span>
                            </a>
                        </li>
                        <li class="list-inline-item">
                            <a href="#">
                                <span class="fa-stack fa-lg">
                                    <i class="fa fa-circle fa-stack-2x"></i>
                                    <i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
                                </span>
                            </a>
                        </li>
                        <li class="list-inline-item">
                            <a href="#">
                                <span class="fa-stack fa-lg">
                                    <i class="fa fa-circle fa-stack-2x"></i>
                                    <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                                </span>
                            </a>
                        </li>
                    </ul>
                    <p class="copyright text-muted">Copyright &copy; Welcome to the Websit <a href="http://www.zixuephp.cn/" target="_blank" title="模板在线">Second</a> <a href="http://www.zixuephp.cn" target="_blank"></a> - Collect from <a href="http://www.zixuephp.cn/" title="模板在线"
                            target="_blank">Second</a> <a href="http://www.zixuephp.cn" target="_blank"></a></p>
                </div>
            </div>
        </div>
    </footer>

    <!-- jQuery Version 3.1.1 -->
    <script src="{{asset('lib/jquery/jquery.js')}}"></script>

    <!-- Tether -->
    <script src="{{asset('lib/tether/tether.min.js')}}"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="{{asset('lib/bootstrap/js/bootstrap.min.js')}}"></script>

    <!-- Theme JavaScript -->
    <script src="{{asset('js/clean-blog.min.js')}}"></script>

</body>

</html>